package ipiwebdao;

import ipiwebtransverse.Article;
import ipiwebtransverse.IpiwebException;

import java.util.List;

public interface ArticleDao {

	public void creerArticle(Article pArticle) throws IpiwebException;
	public void modifierArticle(Article pArticle) throws IpiwebException;
	public void supprimerArticle(Article pArticle) throws IpiwebException;

	public Article getArticleById(int idArticle) throws IpiwebException;

	public List<Article> listerArticle() throws IpiwebException;
	
	public int genererReferenceArticle() throws IpiwebException;
	public List<Article> rechercherArticleParReference(int referenceArticle) throws IpiwebException;
	public List<Article> rechercherArticleParDescription(String descriptionArticle) throws IpiwebException;
	public List<Article> rechercherArticleParPrix(long prixArticle) throws IpiwebException;
}
